FIRST EDITION
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability
is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Neither is any liability assumed
for damages resulting from the use of the information contained herein. For information, address Sams Publishing, 201 W. 103rd St., Indianapolis, IN 46290.
International Standard Book Number: 0-672-30837-1
Library of Congress Catalog Card Number: 95-70086
98 97 96..................4 3 2
Interpretation of the printing code: the rightmost double-digit number is the year of the book's printing; the rightmost single-digit, the number of the book's printing. For example, a printing code of 95-1 shows that the first printing of the book
occurred in 1995.
Printed in the United States of America
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the
validity of any trademark or service mark. Visual Basic is a registered trademark of Microsoft Corporation.
Part I |
Unleashing the Visual Basic 4.0 Product |
1 |
Visual Basic 4.0: New and Improved |
2 |
Exploiting the Features of Visual Basic 4.0 |
3 |
File I/O |
4 |
Timing Is Everything |
5 |
Error Trapping, Error Handling, and Error Reporting |
6 |
Effective User Interface Design |
7 |
Events |
8 |
Reporting Mechanisms |
Part II |
Unleashing Advanced Programming Topics |
9 |
Multimedia |
10 |
Animation |
11 |
Performance Tuning |
12 |
Printing with Visual Basic |
13 |
Debugging and Testing |
14 |
Creating Multi-User Applications |
15 |
TCP/IP, WinSock, and Visual Basic |
Part III |
Unleashing Component-Based Programming |
16 |
OLE for the First Time |
17 |
Using Visual Basic Add-Ins |
18 |
Understanding OLE |
19 |
In Process OLE Servers |
20 |
Incorporating DLLs |
21 |
Exploiting VBXes |
Part IV |
Unleashing Visual Basic 4.0 with Other APIs and Software |
22 |
Using the Windows 95 API |
23 |
Windows Games |
24 |
Microsoft Office |
25 |
Using the MAPI Interface with Visual Basic 4.0 |
26 |
Using TAPI |
Part V |
Unleashing Database Programming |
27 |
The Data Control |
28 |
The Access Jet Engine |
29 |
Open Database Connectivity (ODBC) |
30 |
Using Third-Party VBX/OCX Controls |
31 |
Creating, Modifying, and Maintaining Databases |
32 |
Unleashing SQL |
33 |
Visual Basic 4.0 and Client/Server Programming |
Part VI |
Putting It All Together |
34 |
Help Files |
35 |
Creating a Stand-Alone Database Application |
36 |
Optimum Selection Database System |
37 |
Creating Your Own Screen Savers |
38 |
Unleashing LAN Programming |
Part VII |
Appendixes |
A |
Visual Basic versus Other Languages |
B |
Online Resources for Visual Basic and Other Microsoft Products |
Index |
Michael Amundsen
Keith D. Brophy
Richard Buhrer
Frank Font
Bill Hatfield
Mark Steven Heyman
Tim Koets
Paul W. Logston
David Medinets
Greg Perry
Ross Rothmeier
Conrad Scott
Brad Shannon
Mike Stefanik
Edward Toupin
Chuck Traywick
L. Michael Van Hoozer, Jr.
Ron West
Sams Publishing
201 West 103rd Street
Indianapolis, IN 46290
Visual Basic 4 UNLEASHED
Publisher and President
Richard K. Swadley
Acquisitions Manager
Greg Weigand
Development Manager
Dean Miller
Managing Editor
Cindy Morrow
Marketing Manager
Gregg Bushyeager
Acquisitions Editor
Bradley L. Jones
Development Editor
Anthony Amico
Software Development Specialist
Steve Flatt, Cari Skaggs,
Steve Straiger
Production Editor
Anne Owen
Copy Editors
Fran Blauw, Mitzi Gianakos, Alice Martina Smith, Heather Stith, Johnna VanHoose
Technical Reviewers
Ricardo Birmele, Darwin Dan Boyle, Vincent Mayfield, Angela Murdock, Jeff Perkins
Editorial Coordinator
Bill Whitmer
Technical Edit Coordinator
Lynette Quinn
Formatter
Frank Sinclair
Editorial Assistants
Sharon Cox, Andi Richter
Cover Designer
Tim Amrhein
Book Designer
Alyssa Yesh
Production Team Supervisor
Brad Chinn
Page Layout
Mary Ann Abramson, Charlotte Clapp, Judy Everly, Ayanna Lacey, Steph Mineart, Casey Price, Tina Trettin, Susan Van Ness, Mark Walchle, Colleen Williams
Proofreading
Georgianna Briggs, Mona Brown, Michael Brumitt, Jeanne Clark, Michael Dietsch, Mike Henry, Paula Lowell, Donna Martin, Nancy Price, Brian-Kent Proffitt, Paul Wilson
Indexers
Charlotte Clapp, Jeanne Clark, Cheryl Dietsch